import axios from "@/utils/common/axios";
import type { ResponseData } from "@/utils/common/axios";
import { ActivityDiscountListByDeptIdReq } from 'src/types/activity'

/**
 * 通过ids获取折扣立减优惠信息列表
 * @ type字段区分	【1-立减、2-折扣、3-优惠券、4-付款优惠】
 */
export const activityDiscountListByDeptId = (data: ActivityDiscountListByDeptIdReq): Promise<ResponseData> => {
	return axios.request({
		url: '/activity/activity_discount/list_by_deptId',
		method: 'POST',
		data
	})
}
